package com.zmy.xcx.context;

/**
 * 用户上下文
 */
public class WxUserContext {
    private static ThreadLocal<String> threadLocal = new ThreadLocal<>();
    public static void setCurrentOpenid(String openid){
        threadLocal.set(openid);
    }
    public static String getCurrentOpenid(){
        return threadLocal.get();
    }
    public static void removeCurrentOpenid(){
        threadLocal.remove();
    }
}
